﻿<html>
		<head>
		<meta charset="UTF-8">
		<title>修改视频信息</title>
		<link rel="stylesheet" href="./assets/css/bootstrap.min.css">
		</head>
		<?php 
				$row=$data['music'];
				 ?>
		<body>
				<ul class="nav nav-tabs">
  					<li role="presentation"><a href="admin.php?c=user&m=listusers">用户列表</a></li>
  					<li role="presentation"><a href="admin.php?c=user&m=regUser">用户注册</a></li>
  					<li role="presentation"><a href="admin.php?c=music&m=listMusics">视频列表</a></li>
  					<li role="presentation"><a href="admin.php?c=music&m=regMusic">添加视频</a></li>
				</ul>
		<form  class="form-horizontal" method="post" action="admin.php?c=music&m=updatemusic" enctype="multipart/form-data">
		<input type="hidden" name="mid" value="<?php echo $row['mid']; ?>">
		<input type="hidden" name="oldpic" value="<?php echo $row['pic']; ?>">
		<h3><center>视频信息修改</center></h3>
		<div class="form-group">
   	 		<label for="inputname" class="col-md-3 control-label">视频名称</label>
   	 		<div class="col-md-6">
        	<input type="text" class="form-control" id="inputname" placeholder="视频名称" name="musicname" value=<?php  echo $row['musicname'];  ?>>
   	    	</div>
  		</div>

	 	<div class="form-group">
   	 		<label for="inputdate" class="col-md-3 control-label">上传时间</label>
   	 		<div class="col-md-6">
       		<input type="date" class="form-control" id="inputdate" name="uploaddate" value=<?php  echo $row['uploaddate'];  ?>>
   	    	</div>
  		</div>

		<div class="form-group">
   	 		<label for="inputtid" class="col-md-3 control-label">视频类型</label>
   	 		<div class="col-md-6">
        	<select class="form-control" name="tid" id="">
					<option value="1" <?php  if($row['tid']=='1') echo 'selected';  ?>>电影 </option>	
					<option value="2" <?php  if($row['tid']=='2') echo 'selected';  ?>>电视剧 </option>
					<option value="3" <?php  if($row['tid']=='3') echo 'selected';  ?>>动漫 </option>	
					<option value="4" <?php  if($row['tid']=='4') echo 'selected';  ?>>其它 </option>	
			</select>
   	   	    </div>
  		</div>

  		<div class="form-group">
   	 		<label class="col-md-3 control-label">原视频海报</label>
   	 		<div class="col-md-6">
   		 	<img class="col-md-2 control-label" src="./photos/<?php echo $row['pic']; ?>" width="80" height="80" alt="">
   	   	 	</div>
  		</div>

  		<div class="form-group">
   	 		<label class="col-md-3 control-label">视频海报</label>
   	 		<div class="col-md-6">
   		 	<input type="file" name="pic">	
   	   		</div>
  		</div>

  		<div class="form-group">
   	 		<label for="inputintro" class="col-md-3 control-label">视频简介</label>
   	 		<div class="col-md-6">
        	<textarea class="form-control" rows="3" id="inputintro"  placeholder="视频简介" name="intro"><?php  echo $row['intro'];  ?></textarea>
   	    	</div>
  		</div>

  		<div class="form-group">
   	 		<label for="inputaddress" class="col-md-3 control-label">下载地址</label>
   	 		<div class="col-md-6">
        	<input type="text" class="form-control" id="inputaddress" placeholder="下载地址" name="address" value=<?php  echo $row['address'];  ?>>
   	    	</div>
  		</div>
	
		<div class="form-group">
   	 		<label for="inputadmin" class="col-md-3 control-label">上传人</label>
   	 		<div class="col-md-6">
        	<input type="text" class="form-control" id="inputadmin" placeholder="上传人" name="uploadadmin" value=<?php  echo $row['uploadadmin'];  ?>>
   	   		</div>
  		</div>

		<div class="form-group">
    		<div class="col-sm-offset-3 col-sm-6"> <!-- 向右位移两个方格 -->
     		<button type="submit" class="btn btn-default">修改</button>
   			</div>
		</div>
	
	</form>
	</body>



















<!-- 
		<table border="1" align="center" width="35%">
		<form method="post" action="index.php?c=video&m=updatevideo" enctype="multipart/form-data">
		<input type="hidden" name="vid" value="<?php echo $row['vid']; ?>">
		<input type="hidden" name="oldpic" value="<?php echo $row['pic']; ?>">
		<tr>
			<td>视频名称</td>
			<td><input type="text" name="videoname" value=<?php  echo $row['videoname'];  ?>></td>
		</tr>

		<tr>
			<td>上传时间</td>
			<td><input type="date" name="uploaddate" value=<?php  echo $row['uploaddate'];  ?>></td>
		</tr>

		<tr>
			<td>视频类型</td>
			<td>
				<select name="tid" id="">
					<option value="1" <?php  if($row['tid']=='1') echo 'selected';  ?>>电影 </option>	
					<option value="2" <?php  if($row['tid']=='2') echo 'selected';  ?>>电视剧 </option>
					<option value="3" <?php  if($row['tid']=='3') echo 'selected';  ?>>动漫 </option>	
					<option value="4" <?php  if($row['tid']=='4') echo 'selected';  ?>>其它 </option>	
				</select>
			</td>
		</tr>
		<tr>
			<td>视频海报</td>
			<td><input type="file" name="pic"> 原海报：<img  src="./photos/<?php echo $row['pic']; ?>" width="80" height="80" alt=""></td>
		</tr>

		<tr>
			<td>视频简介</td>
			<td>
				<textarea name="intro" id="" cols="30" rows="10" ><?php  echo $row['intro'];  ?></textarea>
			</td>
		</tr>
		<tr>
			<td>下载地址</td>
			<td><input type="text" name="address" value=<?php  echo $row['address'];  ?>></td>
		</tr>
		<tr>
			<td>上传人</td>
			<td><input type="text" name="uploadadmin" value=<?php  echo $row['uploadadmin'];  ?>></td>
		</tr>

		<tr>
			<td colspan="2" align="center">
				<input type="submit" value="修改">
			</td>
		</tr>
	</form>
	</table>
	
</body>
</html>
		 -->